package shootplane;

/**
 * 大敌机类：继承FlyObject 奖励、血量、分数
 */
public class Bigplane extends FlyObject implements Enemy, Award{
    private int score;
    private int award;

    public Bigplane() {
        image = ShootGame.bigplaneImg;
        width = image.getWidth();
        height = image.getHeight();
        speed = 1;
        x = (int) (Math.random() * (400 - width));
        y = -height;
        flood = 6;
        score = 20;
        award = 1;
    }

    @Override
    public int getScore() {
        return score;
    }

    @Override
    public BulletEnemy shootHero() {
        BulletEnemy bu = new BulletEnemy(x + width / 2 - ShootGame.bulletImg.getWidth() / 2, y + height);
        return bu;
    }

    @Override
    public void move() {
        setY(getY() + getSpeed());
    }

    public int getFlood() {
        return flood;
    }

    public void setFlood(int flood) {
        this.flood = flood;
    }

    public int getAward() {
        return award;
    }

}